package com.kcht.np.vo.dept;

import com.fasterxml.jackson.annotation.JsonAlias;
import lombok.*;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;

@Getter
@Setter
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class DeptCanModifyInfo {
    @NotNull(message = "id不能为空")
    @JsonAlias({"id","did"})
    private Long did;
    /**
     * 部门 名称
     */
    @Length(min = 1,message = "修改的名称不能为空字符串")
    private String name;

    /**
     * 父级部门
     */
    private Long parentId;
    /**
     * 部门 描述
     */
    @Length(min = 1,message = "修改的描述不能为空字符串")
    private String description;

    /**
     * 部门排序
     */
    @Null(message = "系统会自动判定部门级别，请不要设置")
    private Integer level;

}
